From: Antoine Musso Date: Tue, 5 Jul 2005 21:22:25 +0000 (+0000) Subject: fix some issues with phpdoc X-Git-Tag: 1.5.0beta3~40 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=157861bc31bdf7058328cee47ec296cb693c6a55;p=lhc%2Fweb%2Fwiklou.git fix some issues with phpdoc --- diff --git a/includes/BlockCache.php b/includes/BlockCache.php index c64adc1094..0df3a14cd6 100644 --- a/includes/BlockCache.php +++ b/includes/BlockCache.php @@ -1,7 +1,6 @@ " . Validation::link2statistics ( $this->mArticle ) . "

" ; + $s .= '

' . Validation::link2statistics ( $this->mArticle ) . '

' ; $wgOut->addHTML( $s ); wfProfileOut( $fname ); } + /** @todo document */ function beginHistoryList() { global $wgTitle; $this->lastdate = ''; @@ -184,6 +186,7 @@ class PageHistory { return $s; } + /** @todo document */ function endHistoryList() { $last = wfMsg( 'last' ); @@ -193,6 +196,7 @@ class PageHistory { return $s; } + /** @todo document */ function submitButton( $bits = array() ) { return ( $this->linesonpage > 0 ) ? wfElement( 'input', array_merge( $bits, @@ -206,6 +210,7 @@ class PageHistory { : ''; } + /** @todo document */ function historyLine( $row, $next, $counter = '', $notificationtimestamp = false, $latest = false ) { global $wgLang, $wgContLang; @@ -253,6 +258,7 @@ class PageHistory { return $s; } + /** @todo document */ function revLink( $row ) { global $wgUser, $wgLang; $date = $wgLang->timeanddate( $row->rev_timestamp, true ); @@ -266,6 +272,7 @@ class PageHistory { } } + /** @todo document */ function curLink( $row, $latest ) { global $wgUser; $cur = htmlspecialchars( wfMsg( 'cur' ) ); @@ -281,6 +288,7 @@ class PageHistory { } } + /** @todo document */ function lastLink( $row, $next, $counter ) { global $wgUser; $last = htmlspecialchars( wfMsg( 'last' ) ); @@ -298,6 +306,7 @@ class PageHistory { } } + /** @todo document */ function diffButtons( $row, $latest, $counter ) { global $wgUser; if( $this->linesonpage > 1) { @@ -340,14 +349,17 @@ class PageHistory { } } + /** @todo document */ function getLatestOffset($id) { return $this->getExtremeOffset( $id, 'max' ); } + /** @todo document */ function getEarliestOffset($id) { return $this->getExtremeOffset( $id, 'min' ); } + /** @todo document */ function getExtremeOffset( $id, $func ) { $db =& wfGetDB(DB_SLAVE); return $db->selectField( 'revision', @@ -356,6 +368,7 @@ class PageHistory { 'PageHistory::getExtremeOffset' ); } + /** @todo document */ function getLatestID( $id ) { $db =& wfGetDB(DB_SLAVE); return $db->selectField( 'revision', @@ -364,6 +377,7 @@ class PageHistory { 'PageHistory::getLatestID' ); } + /** @todo document */ function getLastOffsetForPaging( $id, $step = 50 ) { $db =& wfGetDB(DB_SLAVE); $revision = $db->tableName( 'revision' ); @@ -380,6 +394,7 @@ class PageHistory { return $last; } + /** @todo document */ function getDirection() { global $wgRequest; @@ -389,6 +404,7 @@ class PageHistory { return DIR_NEXT; } + /** @todo document */ function fetchRevisions($limit, $offset, $direction) { global $wgUser, $wgShowUpdatedMarker; @@ -433,6 +449,7 @@ class PageHistory { return $result; } + /** @todo document */ function getNotificationTimestamp() { global $wgUser, $wgShowUpdatedMarker; @@ -456,6 +473,7 @@ class PageHistory { return $this->mNotificationTimestamp; } + /** @todo document */ function makeNavbar($revisions, $offset, $limit, $direction) { global $wgTitle, $wgLang; @@ -486,8 +504,8 @@ class PageHistory { $firsturl = $wgTitle->escapeLocalURL("action=history&limit={$limit}&go=first"); $lasturl = $wgTitle->escapeLocalURL("action=history&limit={$limit}"); - $firsttext = wfMsgHtml("histfirst"); - $lasttext = wfMsgHtml("histlast"); + $firsttext = wfMsgHtml('histfirst'); + $lasttext = wfMsgHtml('histlast'); $prevurl = $wgTitle->escapeLocalURL("action=history&dir=prev&offset={$latestShown}&limit={$limit}"); $nexturl = $wgTitle->escapeLocalURL("action=history&offset={$earliestShown}&limit={$limit}"); diff --git a/includes/ProxyTools.php b/includes/ProxyTools.php index 0978621d91..3ef4a208db 100644 --- a/includes/ProxyTools.php +++ b/includes/ProxyTools.php @@ -1,19 +1,15 @@ 8205, 'zwnj' => 8204 ); +/** @package MediaWiki */ class Sanitizer { /** * Cleans up HTML, removes dangerous tags and attributes, and diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index 81d2ad639b..7642351cbd 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -213,6 +213,7 @@ class SearchEngine { } } +/** @package MediaWiki */ class SearchResultSet { /** * Fetch an array of regular expression fragments for matching @@ -287,6 +288,7 @@ class SearchResultSet { } } +/** @package MediaWiki */ class SearchResult { function SearchResult( $row ) { $this->mTitle = Title::makeTitle( $row->page_namespace, $row->page_title ); diff --git a/includes/SearchMySQL.php b/includes/SearchMySQL.php index 4cf30c85bc..b36cea6afb 100644 --- a/includes/SearchMySQL.php +++ b/includes/SearchMySQL.php @@ -27,6 +27,7 @@ /** */ require_once( 'SearchEngine.php' ); +/** @package MediaWiki */ class SearchMySQL extends SearchEngine { /** * Perform a full text search query and return a result set. @@ -180,6 +181,7 @@ class SearchMySQL extends SearchEngine { } } +/** @package MediaWiki */ class MySQLSearchResultSet extends SearchResultSet { function MySQLSearchResultSet( $resultSet, $terms ) { $this->mResultSet = $resultSet; diff --git a/includes/SiteConfiguration.php b/includes/SiteConfiguration.php index c7c78a6157..e3befe7dbc 100644 --- a/includes/SiteConfiguration.php +++ b/includes/SiteConfiguration.php @@ -5,11 +5,6 @@ * @package MediaWiki */ -/** - * - * @package MediaWiki - */ - /** * The include paths change after this file is included from commandLine.inc, * meaning that require_once() fails to detect that it is including the same @@ -18,13 +13,15 @@ if (!defined('SITE_CONFIGURATION')) { define('SITE_CONFIGURATION', 1); +/** @package MediaWiki */ class SiteConfiguration { var $suffixes = array(); var $wikis = array(); var $settings = array(); var $localDatabases = array(); var $localVHosts = array(); - + + /** */ function get( $setting, $wiki, $suffix, $params = array() ) { if ( array_key_exists( $wiki, $this->settings[$setting] ) ) { $retval = $this->settings[$setting][$wiki]; @@ -43,27 +40,32 @@ class SiteConfiguration { return $retval; } + /** */ function getBool( $setting, $wiki, $suffix ) { return (bool)($this->get( $setting, $wiki, $suffix )); } + /** */ function &getLocalDatabases() { return $this->localDatabases; } - + + /** */ function initialise() { foreach ( $this->wikis as $db ) { $this->localDatabases[$db] = $db; } } + /** */ function extractVar( $setting, $wiki, $suffix, &$var, $params ) { $value = $this->get( $setting, $wiki, $suffix, $params ); if ( !is_null( $value ) ) { $var = $value; } } - + + /** */ function extractGlobal( $setting, $wiki, $suffix, $params ) { $value = $this->get( $setting, $wiki, $suffix, $params ); if ( !is_null( $value ) ) { @@ -71,6 +73,7 @@ class SiteConfiguration { } } + /** */ function extractAllGlobals( $wiki, $suffix, $params ) { foreach ( $this->settings as $varName => $setting ) { $this->extractGlobal( $varName, $wiki, $suffix, $params ); @@ -94,6 +97,7 @@ class SiteConfiguration { return array( $site, $lang ); } + /** */ function isLocalVHost( $vhost ) { return in_array( $vhost, $this->localVHosts ); } diff --git a/includes/SpecialConfirmemail.php b/includes/SpecialConfirmemail.php index f88545bcc8..ac6415e99f 100644 --- a/includes/SpecialConfirmemail.php +++ b/includes/SpecialConfirmemail.php @@ -8,12 +8,15 @@ * @subpackage SpecialPage */ +/** @todo document */ function wfSpecialConfirmemail( $code ) { $form = new ConfirmationForm(); $form->show( $code ); } +/** @package MediaWiki */ class ConfirmationForm { + /** */ function show( $code ) { if( empty( $code ) ) { $this->showEmpty( $this->checkAndSend() ); @@ -21,7 +24,8 @@ class ConfirmationForm { $this->showCode( $code ); } } - + + /** */ function showCode( $code ) { $user = User::newFromConfirmationCode( $code ); if( is_null( $user ) ) { @@ -30,8 +34,8 @@ class ConfirmationForm { $this->confirmAndShow( $user ); } } - - + + /** */ function confirmAndShow( $user ) { if( $user->confirmEmail() ) { $this->showSuccess(); @@ -39,7 +43,8 @@ class ConfirmationForm { $this->showError(); } } - + + /** */ function checkAndSend() { global $wgUser, $wgRequest; if( $wgRequest->wasPosted() && @@ -56,7 +61,8 @@ class ConfirmationForm { return ''; } } - + + /** */ function showEmpty( $err ) { require_once( 'templates/Confirmemail.php' ); global $wgOut, $wgUser; @@ -71,17 +77,20 @@ class ConfirmationForm { $wgOut->addTemplate( $tpl ); } - + + /** */ function showInvalidCode() { global $wgOut; $wgOut->addWikiText( wfMsg( 'confirmemail_invalid' ) ); } - + + /** */ function showError() { global $wgOut; $wgOut->addWikiText( wfMsg( 'confirmemail_error' ) ); } - + + /** */ function showSuccess() { global $wgOut, $wgRequest, $wgUser; diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 041dba1c2f..5e5e1fa0d0 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -4,6 +4,7 @@ * @subpackage SpecialPage */ +/** @package MediaWiki */ class contribs_finder { var $username, $offset, $limit; var $dbr; diff --git a/includes/SpecialImport.php b/includes/SpecialImport.php index ae3ca83be5..07b2df54af 100644 --- a/includes/SpecialImport.php +++ b/includes/SpecialImport.php @@ -23,6 +23,7 @@ * @subpackage SpecialPage */ +/** */ require_once( 'WikiError.php' ); /** @@ -533,6 +534,7 @@ class WikiImporter { } +/** @package MediaWiki */ class ImportStringSource { function ImportStringSource( $string ) { $this->mString = $string; @@ -553,6 +555,7 @@ class ImportStringSource { } } +/** @package MediaWiki */ class ImportStreamSource { function ImportStreamSource( $handle ) { $this->mHandle = $handle; diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index fca20c0fdb..2487405776 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -430,6 +430,7 @@ class UnlistedSpecialPage extends SpecialPage /** * Shortcut to construct an includable special page + * @package MediaWiki */ class IncludableSpecialPage extends SpecialPage { diff --git a/includes/SpecialUploadMogile.php b/includes/SpecialUploadMogile.php index 20d53cdc20..6519d51861 100644 --- a/includes/SpecialUploadMogile.php +++ b/includes/SpecialUploadMogile.php @@ -20,7 +20,7 @@ function wfSpecialUploadMogile() { $form->execute(); } - +/** @package MediaWiki */ class UploadFormMogile extends UploadForm { /** * Move the uploaded file from its temporary location to the final diff --git a/includes/StreamFile.php b/includes/StreamFile.php index e154d6a202..3098ea876c 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -1,5 +1,7 @@ readfile( $fname ); } +/** */ function wfGetType( $filename ) { global $wgTrivialMimeDetection; @@ -46,13 +49,13 @@ function wfGetType( $filename ) { $ext= strtolower(strrchr($filename, '.')); switch ($ext) { - case '.gif': return "image/gif"; - case '.png': return "image/png"; - case '.jpg': return "image/jpeg"; - case '.jpeg': return "image/jpeg"; + case '.gif': return 'image/gif'; + case '.png': return 'image/png'; + case '.jpg': return 'image/jpeg'; + case '.jpeg': return 'image/jpeg'; } - return "unknown/unknown"; + return 'unknown/unknown'; } else { $magic=& wfGetMimeMagic(); diff --git a/includes/Title.php b/includes/Title.php index 4c6cfa1a0d..d2167cafdd 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -5,6 +5,7 @@ * @package MediaWiki */ +/** */ require_once( 'normal/UtfNormal.php' ); $wgTitleInterwikiCache = array(); diff --git a/includes/WikiError.php b/includes/WikiError.php index ece931f438..f693003a5f 100644 --- a/includes/WikiError.php +++ b/includes/WikiError.php @@ -25,6 +25,7 @@ /** * Since PHP4 doesn't have exceptions, here's some error objects * loosely modeled on the standard PEAR_Error model... + * @package MediaWiki */ class WikiError { /** @@ -65,6 +66,7 @@ class WikiError { /** * Localized error message object + * @package MediaWiki */ class WikiErrorMsg extends WikiError { /** @@ -79,7 +81,8 @@ class WikiErrorMsg extends WikiError { } /** - * + * @package MediaWiki + * @todo document */ class WikiXmlError extends WikiError { /** @@ -91,7 +94,8 @@ class WikiXmlError extends WikiError { $this->mMessage = $message; xml_parser_free( $parser ); } - + + /** @return string */ function getMessage() { return $this->mMessage . ': ' . xml_error_string( $this->mXmlError ); } diff --git a/languages/Language.php b/languages/Language.php index 15d1c38d2b..fa9a37b259 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -159,6 +159,7 @@ if(isset($wgExtraNamespaces)) { # Read language names global $wgLanguageNames; +/** */ require_once( 'Names.php' ); $wgLanguageNamesEn =& $wgLanguageNames; diff --git a/languages/LanguageAr.php b/languages/LanguageAr.php index 91ec82f705..6627ee019b 100644 --- a/languages/LanguageAr.php +++ b/languages/LanguageAr.php @@ -5,6 +5,7 @@ * @subpackage Language */ +/** This is an UTF-8 language */ require_once('LanguageUtf8.php'); /* private */ $wgNamespaceNamesAr = array( diff --git a/languages/LanguageBg.php b/languages/LanguageBg.php index f1bf46cc3b..662e37979e 100644 --- a/languages/LanguageBg.php +++ b/languages/LanguageBg.php @@ -1366,8 +1366,13 @@ $3... 'mw_math_mathml' => 'MathML по възможност (експериментално)' ); +/** This is an UTF-8 language */ require_once( 'LanguageUtf8.php' ); +/** + * @package MediaWiki + * @subpackage Language + */ class LanguageBg extends LanguageUtf8 { function getBookstoreList () { diff --git a/languages/LanguageBn.php b/languages/LanguageBn.php index 35fbc5d2dd..6e16becb15 100644 --- a/languages/LanguageBn.php +++ b/languages/LanguageBn.php @@ -5,6 +5,7 @@ * @subpackage Language */ +/** This is an UTF8 language */ require_once( 'LanguageUtf8.php' ); /* private */ $wgNamespaceNamesBn = array( diff --git a/languages/LanguageCa.php b/languages/LanguageCa.php index 2495fa2d33..a79752cb82 100644 --- a/languages/LanguageCa.php +++ b/languages/LanguageCa.php @@ -877,7 +877,10 @@ Incorporeu-les manualment, si us plau.", ); -require_once( "LanguageUtf8.php" ); +/** This is an UTF8 language */ +require_once( 'LanguageUtf8.php' ); + +/** @package MediaWiki */ class LanguageCa extends LanguageUtf8 { function getNamespaces() { diff --git a/languages/LanguageCs.php b/languages/LanguageCs.php index 8ab684614c..843cbbe8b8 100644 --- a/languages/LanguageCs.php +++ b/languages/LanguageCs.php @@ -5,6 +5,7 @@ * @subpackage Language */ +/** */ require_once( 'LanguageUtf8.php' ); # See Language.php for notes. diff --git a/languages/LanguageCy.php b/languages/LanguageCy.php index 4254a8de5a..19f5ccb366 100644 --- a/languages/LanguageCy.php +++ b/languages/LanguageCy.php @@ -1010,8 +1010,10 @@ amusement.", ); -require_once( "LanguageUtf8.php" ); +/** */ +require_once( 'LanguageUtf8.php' ); +/** @package MediaWiki */ class LanguageCy extends LanguageUtf8 { function getBookstoreList () { diff --git a/languages/LanguageDa.php b/languages/LanguageDa.php index a871385658..4aca5d126a 100644 --- a/languages/LanguageDa.php +++ b/languages/LanguageDa.php @@ -5,6 +5,7 @@ * @subpackage Language */ +/** */ require_once( "LanguageUtf8.php" ); #-------------------------------------------------------------------------- @@ -1630,6 +1631,7 @@ ta[\'ca-nstab-category\'] = new Array(\'c\',\'Se kategorisiden\'); ); +/** @package MediaWiki */ class LanguageDa extends LanguageUtf8 { function getBookstoreList () { diff --git a/languages/LanguageDe.php b/languages/LanguageDe.php index 8aa0ce95a3..01a015ea99 100644 --- a/languages/LanguageDe.php +++ b/languages/LanguageDe.php @@ -5,6 +5,7 @@ * @subpackage Language */ +/** */ require_once( 'LanguageUtf8.php' ); # See Language.php for notes. @@ -1345,6 +1346,7 @@ Der Bestätigungskode läuft am $4 ab. ); +/** @package MediaWiki */ class LanguageDe extends LanguageUtf8 { function getBookstoreList() { diff --git a/languages/LanguageEl.php b/languages/LanguageEl.php index 8ec1b955ce..fd326dba72 100644 --- a/languages/LanguageEl.php +++ b/languages/LanguageEl.php @@ -5,6 +5,7 @@ * @subpackage Language */ +/** */ require_once( 'LanguageUtf8.php' ); $wgNamespaceNamesEl = array( @@ -65,7 +66,7 @@ $wgAllMessagesEl = array( 'dec' => 'Δεκ', ); - +/** @package MediaWiki */ class LanguageEl extends LanguageUtf8 { function getNamespaces() { diff --git a/languages/LanguageEn.php b/languages/LanguageEn.php index 705d4e496a..3feba1777b 100644 --- a/languages/LanguageEn.php +++ b/languages/LanguageEn.php @@ -5,8 +5,10 @@ * @subpackage Language */ +/** */ require_once( 'LanguageUtf8.php' ); +/** @package MediaWiki */ class LanguageEn extends LanguageUtf8 { # Inherit everything } diff --git a/languages/LanguageEo.php b/languages/LanguageEo.php index 243b312e9a..a298244208 100644 --- a/languages/LanguageEo.php +++ b/languages/LanguageEo.php @@ -3,6 +3,8 @@ * @package MediaWiki * @subpackage Language */ + +/** */ require_once("LanguageUtf8.php"); # See language.txt @@ -970,7 +972,7 @@ Bonvolu permane kunigi ilin.", ); - +/** @package MediaWiki */ class LanguageEo extends LanguageUtf8 { function getDefaultUserOptions () { diff --git a/languages/LanguageFr.php b/languages/LanguageFr.php index 9b5fa83df8..7d95a253d9 100644 --- a/languages/LanguageFr.php +++ b/languages/LanguageFr.php @@ -1409,6 +1409,9 @@ class LanguageFr extends LanguageUtf8 { return $wgTranslateNumerals ? strtr($number, $this->digitTransTable ) : $number; } + function isRTL() { + return false; + } function getValidSpecialPages() { global $wgValidSpecialPagesFr; diff --git a/languages/LanguageUtf8.php b/languages/LanguageUtf8.php index f1035b646e..05e79867e8 100644 --- a/languages/LanguageUtf8.php +++ b/languages/LanguageUtf8.php @@ -31,7 +31,10 @@ if( function_exists( 'mb_strtoupper' ) ) { } } -# Base stuff useful to all UTF-8 based language files +/** + * Base stuff useful to all UTF-8 based language files + * @package MediaWiki + */ class LanguageUtf8 extends Language { # These two functions use mbstring library, if it is loaded diff --git a/maintenance/cleanupDupes.php b/maintenance/cleanupDupes.php index ed2e472b14..85c5d1b040 100644 --- a/maintenance/cleanupDupes.php +++ b/maintenance/cleanupDupes.php @@ -27,10 +27,11 @@ $options = array( 'fix', 'index' ); -require_once( "commandLine.inc" ); +/** */ +require_once( 'commandLine.inc' ); require_once( 'cleanupDupes.inc' ); -$wgTitle = Title::newFromText( "Dupe cur entry cleanup script" ); +$wgTitle = Title::newFromText( 'Dupe cur entry cleanup script' ); checkDupes( isset( $options['fix'] ), isset( $options['index'] ) ); -?> \ No newline at end of file +?> diff --git a/maintenance/dumpHTML.inc b/maintenance/dumpHTML.inc index 7abdb1b9de..baba866e88 100644 --- a/maintenance/dumpHTML.inc +++ b/maintenance/dumpHTML.inc @@ -35,7 +35,7 @@ class DumpHTML { for ($id = $start; $id <= $end; $id++) { if ( !($id % REPORTING_INTERVAL) ) { - print("$id\n"); + print "Processing ID: $id".chr(13); } $title = Title::newFromID( $id ); if ( $title ) { diff --git a/maintenance/splitLanguageFiles.inc b/maintenance/splitLanguageFiles.inc new file mode 100644 index 0000000000..9fe1fe760d --- /dev/null +++ b/maintenance/splitLanguageFiles.inc @@ -0,0 +1,1176 @@ + array( + 'delete', + 'deletethispage', + 'undelete_short1', + 'undelete_short', + 'undelete', + 'undeletepage', + 'undeletepagetext', + 'undeletearticle', + 'undeleterevisions', + 'undeletehistory', + 'undeleterevision', + 'undeletebtn', + 'undeletedarticle', + 'undeletedrevisions', + 'undeletedtext', + ), +'move' => array( + 'move', + 'movethispage', +), +'revert' => array( + +), +'protect' => array( + 'confirmprotect', + 'confirmprotecttext', + 'confirmunprotect', + 'confirmunprotecttext', + 'protect', + 'protectcomment', + 'protectmoveonly', + 'protectpage', + 'protectreason', + 'protectsub', + 'protectthispage', + 'unprotect', + 'unprotectthispage', + 'unprotectsub', + 'unprotectcomment', +), +); + +$CreditsMsg = array( +'anonymous', +'siteuser', +'lastmodifiedby', +'and', +'othercontribs', +'others', +'siteusers', +'creditspage', +'nocredits', +); + +// When showing differences +$DifferenceMsg = array( +'previousdiff', +'nextdiff', +); + +// used on page edition +$EditMsg = array( +'bold_sample', +'bold_tip', +'italic_sample', +'italic_tip', +'link_sample', +'link_tip', +'extlink_sample', +'extlink_tip', +'headline_sample', +'headline_tip', +'math_sample', +'math_tip', +'nowiki_sample', +'nowiki_tip', +'image_sample', +'image_tip', +'media_sample', +'media_tip', +'sig_tip', +'hr_tip', + +'accesskey-search', +'accesskey-minoredit', +'accesskey-save', +'accesskey-preview', +'accesskey-diff', +'accesskey-compareselectedversions', +'tooltip-search', +'tooltip-minoredit', +'tooltip-save', +'tooltip-preview', +'tooltip-diff', +'tooltip-compareselectedversions', +'tooltip-watch', + +'copyrightwarning', +'copyrightwarning2', +'editconflict', +'editing', +'editingcomment', +'editingold', +'editingsection', +'explainconflict', +'infobox', +'infobox_alert', +'longpagewarning', +'nonunicodebrowser', +'previewconflict', +'previewnote', +'protectedpagewarning', +'readonlywarning', +'spamprotectiontitle', +'spamprotectiontext', +'spamprotectionmatch', +'templatesused', +'yourdiff', +'yourtext', +); + +// Per namespace +$NamespaceCategory = array ( +'category_header', +'categoryarticlecount', +'categoryarticlecount1', +'listingcontinuesabbrev', +'subcategories', +'subcategorycount', +'subcategorycount1', +'usenewcategorypage', +); + +$NamespaceImage = array ( +'deletedrevision', +'edit-externally', +'edit-externally-help', +'showbigimage', +); + +$NamespaceSpecialMsg = array( +'nosuchspecialpage', +'nospecialpagetext', +); + + + +// per special pages +$SpecialAllMessages = array( +'allmessages', +'allmessagesname', +'allmessagesdefault', +'allmessagescurrent', +'allmessagestext', +'allmessagesnotsupportedUI', +'allmessagesnotsupportedDB', +); + + +$SpecialAllPages = array( +'articlenamespace', +'allpagesformtext1', +'allpagesformtext2', +'allarticles', +'allpagesprev', +'allpagesnext', +'allpagesnamespace', +'allpagessubmit', +); + + +$SpecialAskSQLMsg = array( +'asksql', +'asksqltext', +'sqlislogged', +'sqlquery', +'querybtn', +'selectonly', +'querysuccessful', +); + +$SpecialBlockip = array( +'blockip', +'blockiptext', +'range_block_disabled', +'ipb_expiry_invalid', +'ip_range_invalid', +'ipbexpiry', +'ipbsubmit', +); + +$SpecialContributions = array( +'contribsub', +'contributionsall', +'newbies', +'nocontribs', +'ucnote', +'uclinks', +'uctop', +); + +$SpecialExportMsg = array ( +'export', +'exporttext', +'exportcuronly', +); + +$SpecialImagelist = array( +'imagelistall', +); + +$SpecialImportMsg = array ( +'import', +'importtext', +'importfailed', +'importnotext', +'importsuccess', +'importhistoryconflict', +); + +$SpecialLockdbMsg = array( +'lockdb', +'unlockdb', +'lockdbtext', +'unlockdbtext', +'lockconfirm', +'unlockconfirm', +'lockbtn', +'unlockbtn', +'locknoconfirm', +'lockdbsuccesssub', +'unlockdbsuccesssub', +'lockdbsuccesstext', +'unlockdbsuccesstext', +); + +$SpecialLogMsg = array( +'specialloguserlabel', +'speciallogtitlelabel', +); + +$SpecialMaintenance = array( +'maintenance', +'maintnancepagetext', +'maintenancebacklink', +'disambiguations', +'disambiguationspage', +'disambiguationstext', +'doubleredirects', +'doubleredirectstext', +'brokenredirects', +'brokenredirectstext', +'selflinks', +'selflinkstext', +'mispeelings', +'mispeelingstext', +'mispeelingspage', +'missinglanguagelinks', +'missinglanguagelinksbutton', +'missinglanguagelinkstext', +); + +$SpecialMakeSysopMsg = array ( +'already_bureaucrat', +'already_sysop', +'makesysop', +'makesysoptitle', +'makesysoptext', +'makesysopname', +'makesysopsubmit', +'makesysopok', +'makesysopfail', +'rights', +'set_rights_fail', +'set_user_rights', +'user_rights_set', +); + +$SpecialMovepageMsg = array( +'newtitle', +'movearticle', +'movenologin', +'movenologintext', +'movepage', +'movepagebtn', +'movepagetalktext', +'movepagetext', +'movetalk', +'pagemovedsub', +'pagemovedtext', +'talkexists', +'talkpagemoved', +'talkpagenotmoved', + +); + +$SpecialPreferencesMsg = array( +'tog-underline', +'tog-highlightbroken', +'tog-justify', +'tog-hideminor', +'tog-usenewrc', +'tog-numberheadings', +'tog-showtoolbar', +'tog-editondblclick', +'tog-editsection', +'tog-editsectiononrightclick', +'tog-showtoc', +'tog-rememberpassword', +'tog-editwidth', +'tog-watchdefault', +'tog-minordefault', +'tog-previewontop', +'tog-previewonfirst', +'tog-nocache', +'tog-enotifwatchlistpages', +'tog-enotifusertalkpages', +'tog-enotifminoredits', +'tog-enotifrevealaddr', +'tog-shownumberswatching', +'tog-rcusemodstyle', +'tog-showupdated', +'tog-fancysig', +'tog-externaleditor', + +'imagemaxsize', +'prefs-help-email', +'prefs-help-email-enotif', +'prefs-help-realname', +'prefs-help-userdata', +'prefs-misc', +'prefs-personal', +'prefs-rc', +'resetprefs', +'saveprefs', +'oldpassword', +'newpassword', +'retypenew', +'textboxsize', +'rows', +'columns', +'searchresultshead', +'resultsperpage', +'contextlines', +'contextchars', +'stubthreshold', +'recentchangescount', +'savedprefs', +'timezonelegend', +'timezonetext', +'localtime', +'timezoneoffset', +'servertime', +'guesstimezone', +'emailflag', +'defaultns', +'default', +); + +$SpecialRecentchangesMsg = array( +'changes', +'recentchanges', +'recentchanges-url', +'recentchangestext', +'rcloaderr', +'rcnote', +'rcnotefrom', +'rclistfrom', +'showhideminor', +'rclinks', +'rchide', +'rcliu', +'diff', +'hist', +'hide', +'show', +'tableform', +'listform', +'nchanges', +'minoreditletter', +'newpageletter', +'sectionlink', +'number_of_watching_users_RCview', +'number_of_watching_users_pageview', +'recentchangesall', +); + +$SpecialRecentchangeslinkedMsg = array( +'rclsub', +); + +$SpecialSearchMsg = array( +'searchresults', +'searchresulttext', +'searchquery', +'badquery', +'badquerytext', +'matchtotals', +'nogomatch', +'titlematches', +'notitlematches', +'textmatches', +'notextmatches', +); + +$SpecialSitesettingsMsg = array( +'sitesettings', +'sitesettings-features', +'sitesettings-permissions', +'sitesettings-memcached', +'sitesettings-debugging', +'sitesettings-caching', +'sitesettings-wgShowIPinHeader', +'sitesettings-wgUseDatabaseMessages', +'sitesettings-wgUseCategoryMagic', +'sitesettings-wgUseCategoryBrowser', +'sitesettings-wgHitcounterUpdateFreq', +'sitesettings-wgAllowExternalImages', +'sitesettings-permissions-readonly', +'sitesettings-permissions-whitelist', +'sitesettings-permissions-banning', +'sitesettings-permissions-miser', +'sitesettings-wgReadOnly', +'sitesettings-wgReadOnlyFile', +'sitesettings-wgWhitelistEdit', +'sitesettings-wgWhitelistRead', +'sitesettings-wgWhitelistAccount-user', +'sitesettings-wgWhitelistAccount-sysop', +'sitesettings-wgWhitelistAccount-developer', +'sitesettings-wgSysopUserBans', +'sitesettings-wgSysopRangeBans', +'sitesettings-wgDefaultBlockExpiry', +'sitesettings-wgMiserMode', +'sitesettings-wgDisableQueryPages', +'sitesettings-wgUseWatchlistCache', +'sitesettings-wgWLCacheTimeout', +'sitesettings-cookies', +'sitesettings-performance', +'sitesettings-images', +); + +$SpecialStatisticsMsg = array( +'statistics', +'sitestats', +'userstats', +'sitestatstext', +'userstatstext', +); + +$SpecialUndelte = array( +'deletepage', +); + +$SpecialUploadMsg = array( +'affirmation', +'badfilename', +'badfiletype', +'emptyfile', +'fileexists', +'filedesc', +'filename', +'filesource', +'filestatus', +'fileuploaded', +'ignorewarning', +'illegalfilename', +'largefile', +'minlength', +'noaffirmation', +'reupload', +'reuploaddesc', +'savefile', +'successfulupload', +'upload', +'uploadbtn', +'uploadcorrupt', +'uploaddisabled', +'uploadfile', +'uploadedimage', +'uploaderror', +'uploadlink', +'uploadlog', +'uploadlogpage', +'uploadlogpagetext', +'uploadnologin', +'uploadnologintext', +'uploadtext', +'uploadwarning', +); + +$SpecialUserlevelsMsg = array( +'saveusergroups', +'userlevels-editusergroup', +'userlevels-groupsavailable', +'userlevels-groupshelp', +'userlevels-groupsmember', +); + +$SpecialUserloginMsg = array( +'acct_creation_throttle_hit', +'loginend', +'loginsuccesstitle', +'loginsuccess', +'nocookiesnew', +'nocookieslogin', +'noemail', +'noname', +'nosuchuser', +'mailmypassword', +'mailmypasswordauthent', +'passwordremindermailsubject', +'passwordremindermailbody', +'passwordsent', +'passwordsentforemailauthentication', +'userexists', +'wrongpassword', +); + +$SpecialValidateMsg = array( +'val_yes', +'val_no', +'val_revision', +'val_time', +'val_list_header', +'val_add', +'val_del', +'val_warning', +'val_rev_for', +'val_rev_stats_link', +'val_iamsure', +'val_clear_old', +'val_merge_old', +'val_form_note', +'val_noop', +'val_percent', +'val_percent_single', +'val_total', +'val_version', +'val_tab', +'val_this_is_current_version', +'val_version_of', +'val_table_header', +'val_stat_link_text', +'val_view_version', +'val_validate_version', +'val_user_validations', +'val_no_anon_validation', +'val_validate_article_namespace_only', +'val_validated', +'val_article_lists', +'val_page_validation_statistics', +); + +$SpecialVersionMsg = array( +'special_version_prefix', +'special_version_postfix' +); + +$SpecialWatchlistMsg = array( +'watchlistall1', +'watchlistall2', +'wlnote', +'wlshowlast', +'wlsaved', +'wlhideshowown', +'wlshow', +'wlhide', +); + +$SpecialWhatlinkshereMsg = array( +'linklistsub', +'nolinkshere', +'isredirect', +); + + +$commonMsg = array ( +'sunday', +'monday', +'tuesday', +'wednesday', +'thursday', +'friday', +'saturday', +'january', +'february', +'march', +'april', +'may_long', +'june', +'july', +'august', +'september', +'october', +'november', +'december', +'jan', +'feb', +'mar', +'apr', +'may', +'jun', +'jul', +'aug', +'sep', +'oct', +'nov', +'dec', +'categories', +'category', +'linktrail', +'mainpage', +'portal', +'portal-url', +'about', +'aboutsite', +'aboutpage', +'article', +'help', +'helppage', +'wikititlesuffix', +'bugreports', +'bugreportspage', +'sitesupport', +'sitesupport-url', +'faq', +'faqpage', +'edithelp', +'newwindow', +'edithelppage', +'cancel', +'qbfind', +'qbbrowse', +'qbedit', +'qbpageoptions', +'qbpageinfo', +'qbmyoptions', +'qbspecialpages', +'moredotdotdot', +'mypage', +'mytalk', +'anontalk', +'navigation', +'metadata', +'metadata_page', +'currentevents', +'currentevents-url', +'disclaimers', +'disclaimerpage', +'errorpagetitle', +'returnto', +'tagline', +'whatlinkshere', +'search', +'go', +'history', +'history_short', +'info_short', +'printableversion', +'edit', +'editthispage', +'newpage', +'talkpage', +'specialpage', +'personaltools', +'postcomment', +'addsection', +'articlepage', +'subjectpage', +'talk', +'toolbox', +'userpage', +'wikipediapage', +'imagepage', +'viewtalkpage', +'otherlanguages', +'redirectedfrom', +'lastmodified', +'viewcount', +'copyright', +'poweredby', +'printsubtitle', +'protectedpage', +'administrators', +'sysoptitle', +'sysoptext', +'developertitle', +'developertext', +'bureaucrattitle', +'bureaucrattext', +'nbytes', +'ok', +'sitetitle', +'pagetitle', +'sitesubtitle', +'retrievedfrom', +'newmessages', +'newmessageslink', +'editsection', +'toc', +'showtoc', +'hidetoc', +'thisisdeleted', +'restorelink', +'feedlinks', +'sitenotice', +'nstab-main', +'nstab-user', +'nstab-media', +'nstab-special', +'nstab-wp', +'nstab-image', +'nstab-mediawiki', +'nstab-template', +'nstab-help', +'nstab-category', +'nosuchaction', +'nosuchactiontext', + + +'error', +'databaseerror', +'dberrortext', +'dberrortextcl', +'noconnect', +'nodb', +'cachederror', +'laggedslavemode', +'readonly', +'enterlockreason', +'readonlytext', +'missingarticle', +'internalerror', +'filecopyerror', +'filerenameerror', +'filedeleteerror', +'filenotfound', +'unexpected', +'formerror', +'badarticleerror', +'cannotdelete', +'badtitle', +'badtitletext', +'perfdisabled', +'perfdisabledsub', +'perfcached', +'wrong_wfQuery_params', +'viewsource', +'protectedtext', +'seriousxhtmlerrors', +'logouttitle', +'logouttext', +'welcomecreation', + +'loginpagetitle', +'yourname', +'yourpassword', +'yourpasswordagain', +'newusersonly', +'remembermypassword', +'loginproblem', +'alreadyloggedin', +'login', +'loginprompt', +'userlogin', +'logout', +'userlogout', +'notloggedin', +'createaccount', +'createaccountmail', +'badretype', + +'youremail', +'yourrealname', +'yourlanguage', +'yourvariant', +'yournick', +'emailforlost', +'loginerror', +'nosuchusershort', + +'mailerror', +'emailauthenticated', +'emailnotauthenticated', +'invalidemailaddress', +'disableduntilauthent', +'disablednoemail', + +'summary', +'subject', +'minoredit', +'watchthis', +'savearticle', +'preview', +'showpreview', +'showdiff', +'blockedtitle', +'blockedtext', +'whitelistedittitle', +'whitelistedittext', +'whitelistreadtitle', +'whitelistreadtext', +'whitelistacctitle', +'whitelistacctext', +'loginreqtitle', +'loginreqtext', +'accmailtitle', +'accmailtext', +'newarticle', +'newarticletext', +'talkpagetext', +'anontalkpagetext', +'noarticletext', +'clearyourcache', +'usercssjsyoucanpreview', +'usercsspreview', +'userjspreview', +'updated', +'note', +'storedversion', // not used ? Editpage ? +'revhistory', +'nohistory', +'revnotfound', +'revnotfoundtext', +'loadhist', +'currentrev', +'revisionasof', +'revisionasofwithlink', +'previousrevision', +'nextrevision', +'currentrevisionlink', +'cur', +'next', +'last', +'orig', +'histlegend', +'history_copyright', +'difference', +'loadingrev', +'lineno', +'editcurrent', +'selectnewerversionfordiff', +'selectolderversionfordiff', +'compareselectedversions', + +'prevn', +'nextn', +'viewprevnext', +'showingresults', +'showingresultsnum', +'nonefound', +'powersearch', +'powersearchtext', +'searchdisabled', +'googlesearch', +'blanknamespace', +'preferences', +'prefsnologin', +'prefsnologintext', +'prefslogintext', +'prefsreset', +'qbsettings', +'qbsettingsnote', +'changepassword', +'skin', +'math', +'dateformat', + +'math_failure', +'math_unknown_error', +'math_unknown_function', +'math_lexing_error', +'math_syntax_error', +'math_image_error', +'math_bad_tmpdir', +'math_bad_output', +'math_notexvc', + + + + + + +'grouplevels-lookup-group', +'grouplevels-group-edit', +'editgroup', +'addgroup', +'userlevels-lookup-user', +'userlevels-user-editname', +'editusergroup', +'grouplevels-editgroup', +'grouplevels-addgroup', +'grouplevels-editgroup-name', +'grouplevels-editgroup-description', +'savegroup', + +// common to several pages +'copyrightpage', +'copyrightpagename', +'imagelist', +'imagelisttext', +'ilshowmatch', +'ilsubmit', +'showlast', +'byname', +'bydate', +'bysize', + + + +'imgdelete', +'imgdesc', +'imglegend', +'imghistory', +'revertimg', +'deleteimg', +'deleteimgcompletely', +'imghistlegend', +'imagelinks', +'linkstoimage', +'nolinkstoimage', + +// unused ?? +'uploadedfiles', +'getimagelist', + + +'sharedupload', +'shareduploadwiki', + +// Special pages names +'orphans', +'geo', +'validate', +'lonelypages', +'uncategorizedpages', +'uncategorizedcategories', +'unusedimages', +'popularpages', +'nviews', +'wantedpages', +'nlinks', +'allpages', +'randompage', +'randompage-url', +'shortpages', +'longpages', +'deadendpages', +'listusers', +'listadmins', +'specialpages', +'spheading', +'restrictedpheading', +'asksqlpheading', +'blockpheading', +'createaccountpheading', +'deletepheading', +'userrightspheading', +'grouprightspheading', +'siteadminpheading', +'recentchangeslinked', + + +'debug', +'newpages', +'ancientpages', +'intl', +'unusedimagestext', +'booksources', +'categoriespagetext', +'data', +'userlevels', +'grouplevels', +'booksourcetext', +'isbn', +'rfcurl', +'pubmedurl', +'alphaindexline', +'version', +'log', +'alllogstext', +'nextpage', +'mailnologin', +'mailnologintext', +'emailuser', +'emailpage', +'emailpagetext', +'usermailererror', +'defemailsubject', +'noemailtitle', +'noemailtext', +'emailfrom', +'emailto', +'emailsubject', +'emailmessage', +'emailsend', +'emailsent', +'emailsenttext', +'watchlist', +'watchlistsub', +'nowatchlist', +'watchnologin', +'watchnologintext', +'addedwatch', +'addedwatchtext', +'removedwatch', +'removedwatchtext', +'watch', +'watchthispage', +'unwatch', +'unwatchthispage', +'notanarticle', +'watchnochange', +'watchdetails', +'watchmethod-recent', +'watchmethod-list', +'removechecked', +'watchlistcontains', +'watcheditlist', +'removingchecked', +'couldntremove', +'iteminvalidname', + +'updatedmarker', +'email_notification_mailer', +'email_notification_infotext', +'email_notification_reset', +'email_notification_newpagetext', +'email_notification_to', +'email_notification_subject', +'email_notification_lastvisitedrevisiontext', +'email_notification_body', + +'confirm', +'excontent', +'exbeforeblank', +'exblank', +'confirmdelete', +'deletesub', +'historywarning', +'confirmdeletetext', +'actioncomplete', +'deletedtext', +'deletedarticle', +'dellogpage', +'dellogpagetext', +'deletionlog', +'reverted', +'deletecomment', +'imagereverted', +'rollback', +'rollback_short', +'rollbacklink', +'rollbackfailed', +'cantrollback', +'alreadyrolled', +'revertpage', +'editcomment', +'sessionfailure', + +'protectlogpage', +'protectlogtext', + +'protectedarticle', +'unprotectedarticle', + +'contributions', +'mycontris', +'notargettitle', // not used ? +'notargettext', // not used ? + +'linkshere', + +'ipaddress', +'ipadressorusername', // not used ? +'ipbreason', + +'badipaddress', +'noblockreason', +'blockipsuccesssub', +'blockipsuccesstext', +'unblockip', +'unblockiptext', +'ipusubmit', +'ipusuccess', +'ipblocklist', +'blocklistline', +'blocklink', +'unblocklink', +'contribslink', +'autoblocker', +'blocklogpage', +'blocklogentry', +'blocklogtext', +'unblocklogentry', // not used ? + +'proxyblocker', +'proxyblockreason', +'proxyblocksuccess', +'sorbs', +'sorbsreason', + +'setbureaucratflag', +'bureaucratlog', +'rightslogtext', +'bureaucratlogentry', + +'articleexists', // not used ? + +'movedto', +'1movedto2', +'1movedto2_redir', +'movelogpage', +'movelogpagetext', + +'thumbnail-more', +'missingimage', +'filemissing', +'Monobook.css', +'nodublincore', +'nocreativecommons', +'notacceptable', + +// used in Article:: +'infosubtitle', +'numedits', +'numtalkedits', +'numwatchers', +'numauthors', +'numtalkauthors', + +// not used ? +'mw_math_png', +'mw_math_simple', +'mw_math_html', +'mw_math_source', +'mw_math_modern', +'mw_math_mathml', + +// Patrolling +'markaspatrolleddiff', +'markaspatrolledlink', +'markaspatrolledtext', +'markedaspatrolled', +'markedaspatrolledtext', +'rcpatroldisabled', // not used ? +'rcpatroldisabledtext', // not used ? + +'Monobook.js', +'newimages', +'noimages', +'variantname-zh-cn', +'variantname-zh-tw', +'variantname-zh-hk', +'variantname-zh-sg', +'variantname-zh', +'zhconversiontable', +'passwordtooshort', // sp preferences / userlogin +?> diff --git a/maintenance/splitLanguageFiles.php b/maintenance/splitLanguageFiles.php new file mode 100644 index 0000000000..04cd261e05 --- /dev/null +++ b/maintenance/splitLanguageFiles.php @@ -0,0 +1,13 @@ +